﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

            MyDLL.Function.openMemory();
             
            //Console.WriteLine(fun.say("Hello World"));
            while (true)
            {
                var aa = MyDLL.Function.getChannel0();
                Console.WriteLine(aa[aa.Length - 1] - 2048);
                System.Threading.Thread.Sleep(1000);
            }
            //Console.ReadKey();
        }
    }
}
